<h1>Editing receipt</h1>

<% form_for(@receipt) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :store %><br />
    <%= select("receipt","store_id",Store.find(:all).collect {|s| [s.code, s.id]}) %>
  </p>
  <p>
    <%= f.label :rDate %><br />
    <%= f.date_select :rDate %>
  </p>
  <p>
    <%= f.label :rTime %><br />
    <%= f.datetime_select :rTime %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @receipt %> |
<%= link_to 'Back', receipts_path %>
